<template>
  <div>
    <!-- 面包屑 -->
    <my-bread leavel1="商品管理"
              leavel2="商品列表"></my-bread>
    <!-- 搜索框 -->
    <div style="margin-top: 15px;">
      <el-input placeholder="请输入内容"
                v-model="input3"
                style="width:300px;"
                class="input-with-select">
        <el-button slot="append"
                   icon="el-icon-search"></el-button>
      </el-input>
      <el-button type="success"
                 @click="$router.push({name:'goodsadd'})">添加商品</el-button>
    </div>
    <!-- 列表 -->
    <div style="margin-top: 15px;">
      <el-table :data="tableData"
                style="width: 100%">
        <el-table-column prop="id"
                         label="#"
                         width="180">
        </el-table-column>
        <el-table-column prop="name"
                         label="商品名称"
                         width="180">
        </el-table-column>
        <el-table-column prop="address"
                         label="商品价格">
        </el-table-column>
        <el-table-column prop="address"
                         label="商品重量">
        </el-table-column>
        <el-table-column prop="address"
                         label="创建日期">
        </el-table-column>
        <el-table-column label="操作">
          <el-button type="primary"
                     icon="el-icon-edit"
                     size="mini"
                     plain
                     circle></el-button>
          <el-button type="danger"
                     icon="el-icon-delete"
                     size="mini"
                     plain
                     circle></el-button>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input3: '',
      tableData: [
        {
          id: '1',
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄',
        },
        {
          id: '2',
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄',
        },
        {
          id: '3',
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄',
        },
        {
          id: '4',
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄',
        },
      ],
    };
  },
  methods: {},
};
</script>

<style>
</style>